From e0d20ed4b7c11282ded18ed9bff11f2f2888c3c1 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 10 May 2010 09:27:17 +0100 Subject: [PATCH] xl: Remove transaction handle in "xl rename" Thanks Stefano for pointing out that transaction handle in libxl clients is not needed. Signed-off-by: Yang Hongyang --- tools/libxl/xl_cmdimpl.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 525d1cfe1a..0f92a73d02 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -3078,7 +3078,6 @@ int main_rename(int argc, char **argv) int opt; char *dom; char *new_name; - xs_transaction_t t; while ((opt = getopt(argc, argv, "h")) != -1) { switch (opt) { @@ -3101,16 +3100,10 @@ int main_rename(int argc, char **argv) find_domain(dom); new_name = argv[optind]; -retry_transaction: - t = xs_transaction_start(ctx.xsh); - if (libxl_domain_rename(&ctx, domid, common_domname, new_name, t)) { + if (libxl_domain_rename(&ctx, domid, common_domname, new_name, 0)) { fprintf(stderr, "Can't rename domain '%s'.\n", dom); exit(1); } - if (!xs_transaction_end(ctx.xsh, t, 0)) - if (errno == EAGAIN) - goto retry_transaction; - exit(0); } -- 2.30.2